﻿using System.Numerics;

namespace Xioa_UI.DataOrigin;

public interface IComputerValue
{
    public void OnPropertyChanged<T>(string name,  Action action);
    public void OnPropertyChanged<T>(string name, T oldValue, T newValue, Action action) where T : IComparable;

    public TD OnPropertyChanged<T, TD>(string name, T newValue, Func<T, TD> func);
    public TD? OnPropertyChanged<T, TD>(string name, T oldValue, T newValue, Func<T, TD> func) where T : IComparable where TD : new();
}